<?php
$username = $data['username'];
$login    = $data['login'];
?>
<div id="masthead">

    <div class="hd">
        <a href=""><img src="images/home_logo.gif" title="TVB.COM" alt="TVB.COM Logo" /></a>
    </div>

    <div class="bd">
        <h1>Portal Management System 2.0<br /> — Programme Data Entry System</h1>
    </div>

    <div class="ft">
        
        <p><em id="top-clock"><?php echo date("Y-m-d H:i");?></em></p>
        <?php if (isset($login) && $login===true) { ?>
        <p>Welcome, <em><?php echo $username; ?></em></p>
        <?php } ?>
    </div>

</div>
